package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 返回对象
 */
@ApiModel(description = "返回对象")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ServiceProduct   {
  @JsonProperty("category")
  private String category = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("startDate")
  private String startDate = null;

  @JsonProperty("endDate")
  private String endDate = null;

  public ServiceProduct category(String category) {
    this.category = category;
    return this;
  }

  /**
   * 类别
   * @return category
  **/
  @ApiModelProperty(example = "投资广场", value = "类别")


  public String getCategory() {
    return category;
  }

  public void setCategory(String category) {
    this.category = category;
  }

  public ServiceProduct name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 名称
   * @return name
  **/
  @ApiModelProperty(example = "妙不可言", value = "名称")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public ServiceProduct startDate(String startDate) {
    this.startDate = startDate;
    return this;
  }

  /**
   * 开始日期
   * @return startDate
  **/
  @ApiModelProperty(example = "2019-06-06", value = "开始日期")


  public String getStartDate() {
    return startDate;
  }

  public void setStartDate(String startDate) {
    this.startDate = startDate;
  }

  public ServiceProduct endDate(String endDate) {
    this.endDate = endDate;
    return this;
  }

  /**
   * 结束日期
   * @return endDate
  **/
  @ApiModelProperty(example = "2020-06-07", value = "结束日期")


  public String getEndDate() {
    return endDate;
  }

  public void setEndDate(String endDate) {
    this.endDate = endDate;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ServiceProduct serviceProduct = (ServiceProduct) o;
    return Objects.equals(this.category, serviceProduct.category) &&
        Objects.equals(this.name, serviceProduct.name) &&
        Objects.equals(this.startDate, serviceProduct.startDate) &&
        Objects.equals(this.endDate, serviceProduct.endDate);
  }

  @Override
  public int hashCode() {
    return Objects.hash(category, name, startDate, endDate);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ServiceProduct {\n");
    
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    sb.append("    endDate: ").append(toIndentedString(endDate)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

